
#ifndef _LIGHT_H_
#define _LIGHT_H_

#include <stdint.h>


#define Light_Flash(count, color, ms)	Light_FlashAsync(0, count, ms, color, ms, Color_Black)


typedef enum {
	Color_Black = 0,	//黑色，关闭
	Color_Red = 1,		//红色
	Color_Green = 2,	//绿色
	Color_Amber = 3,	//黄褐色
	Color_Blue = 4,		//蓝色
	Color_MAX
}LightColor_T;


//灯初始化
void Light_Init(void);

//设置等的颜色
void Light_Set(uint8_t id, uint8_t color);
//设置灯闪烁
void Light_FlashAsync(uint8_t id, uint8_t count, uint32_t onMs, uint8_t onColor, uint32_t offMs, uint8_t offColor);
//恢复常态
void Light_Permanent(uint8_t id);


#endif /*_LIGHT_H_*/

